<?php
include_once "conn.php";
$arr=[];
$mark=$_GET['mark'];
$deal_mark=5*$mark;
$sql=$db->query("SELECT goods_id,goods_title,goods_url,goods_price,goods_time FROM goods 
                    ORDER BY goods_price LIMIT $deal_mark,5");
    while ($row = $sql -> fetch_assoc()) {
        array_push($arr,$row);
    }
echo json_encode($arr);
$db->close();
?>